#include "Queue.h"

int main()
{
	packet * p = new packet();
	packet * p1 = new packet();
	packet * p3 = new packet();
	packet * p4 = new packet();

	Queue * q = new Queue();
	q->push(p);
	q->push(p1);
	q->push(p3);
	q->push(p4);

	packet * pp;
	pp = q->pop();
	delete pp;
	pp = q->pop();
	delete pp;
	pp = q->pop();
	delete pp;
	pp = q->pop();
	delete pp;
	pp = q->pop();
	delete pp;
	Sleep(INFINITE);
}